import xyRequest from '..'

// POST /user/model/add 新增模块信息
export function addModelRequest(data: object) {
  return xyRequest.post({
    url: '/user/model/add',
    data
  })
}

// DELETE /user/model/del/{id} 删除模块信息
export function delModelRequest(id: string) {
  return xyRequest.delete({
    url: `/user/model/del/${id}`
  })
}

// POST /user/model/move 移动模块
export function moveModelRequest(data: object) {
  return xyRequest.post({
    url: '/user/model/move',
    data
  })
}
